import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

import javax.print.attribute.DateTimeSyntax;

import org.hibernate.type.DateType;

import com.ibm.eg.cvmanager.dao.impl.ApplicantDao;
import com.ibm.eg.cvmanager.dao.impl.InterviewDao;
import com.ibm.eg.cvmanager.dto.Applicant;
import com.ibm.eg.cvmanager.dto.Interview;


public class MainClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	/*	// TODO Auto-generated method stub
//		ApplicantDao dao = new ApplicantDao();
//		
////		Applicant applicant = new Applicant();
////		applicant.setCv("cv path");
////		applicant.setName("mohamed");
////		applicant.setMobile("010998980");
////		applicant.setEmail("mohamed@email.com");
////		applicant.setPhone("987876876");
////		
////		dao.addApplicant(applicant);
//////		dao.deleteApplicant(applicant);
		InterviewDao interviewDao = new InterviewDao();
		interviewDao.beginTransaction();
		//ArrayList<Interview> interviews = interviewDao.getAll(Interview.class);
		DateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        Date startDate = null;
        Date endDate = null;
		try {
			startDate = (Date) format.parse("2010-04-11 15:21:26");
			endDate = (Date) format.parse("2015-04-16 15:21:26");
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		/*
		interviews = interviewDao.filterInterviews(startDate , endDate, 1);
		interviewDao.markAsFailed(2);
		interviewDao.markAsSucceeded(3);
		interviewDao.commitTransaction();
		 */
	}
}

